package cn.com.thingo.hyintelligent.base.contract;

import com.videogo.openapi.bean.EZDeviceInfo;

import java.util.List;

import cn.com.thingo.hyintelligent.base.BasePresenter;
import cn.com.thingo.hyintelligent.base.BaseView;
import cn.com.thingo.hyintelligent.model.bean.BaseBean;
import cn.com.thingo.hyintelligent.model.bean.EzAddDevicePermissionBean;
import cn.com.thingo.hyintelligent.model.bean.EzDeviceAuthorizationListBean;

public interface EzDeviceManageContract {
    interface View extends BaseView {
        void showDeviceInfoList(List<EZDeviceInfo> list);

        void viewAddEzDevicePermissionResult(BaseBean bean);

        void viewDelEzDevicePermissionResult(BaseBean bean);

        void viewEzDeviceListResult(BaseBean<List<EzDeviceAuthorizationListBean>> bean);
    }

    interface Presenter extends BasePresenter<EzDeviceManageContract.View> {
        void getDeviceInfoList();

        void addEzDevicePermission(String accessToken, String tel, String toTel, String statement);

        void delEzDevicePermission(String accessToken, String tel, String toTel, String deviceSerial);

        void getEzDeviceList(String accessToken, String tel, String toTel);
    }
}
